package cn.have.service.impl;

import cn.have.entities.CommonResult;
import cn.have.entities.Payment;
import cn.have.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @ClassName PaymentFallbackService
 * @Author 王新
 * @Date: 2022/2/2 10:40 星期三
 * @Version 1.0
 * @Description
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id)
    {
        return new CommonResult<>(444,"服务降级返回,没有该流水信息",new Payment(id, "errorSerial......"));
    }
}
